// src/js/common.js
import "jbecool/jbecool.uniapp.min.js";

J.api.apiUrl = "http://localhost:8089/__api__";

J.api.fileUrl = "http://127.0.0.1:8089/__api__?type=user&user_id={0}&filename={1}";
J.formatFileUrl = function (filename) {
    return J.api.fileUrl.replace("{0}", J.uck.get("userId")).replace("{1}", filename);
};

J.api.accessToken = J.uck.get('accessToken');
console.log(J.api.accessToken);